package com.dd.census.entity;

import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.NotEmpty;
import com.dd.census.entity.base.BaseEntity;

/**
 * 描述:tb_advertisement表的实体类
 * @version
 * @author:  wang
 * @创建时间: 2020-11-20
 */
public class Advertisement extends BaseEntity implements Serializable  {
    /**
     * 
     */
    private Integer id;

    /**
     * 广告标题
     */
    @NotEmpty(message = "名称不能为空!")
    private String title;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * width
     */
    private Integer width;

    /**
     * height
     */
    private Integer height;

    /**
     * 链接地址
     */
    private String linkurl;

    /**
     * 类型（1.首页轮播图)
     */
    @NotEmpty(message = "所属位置不能为空!")
    private String type;
    private String typeStr;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private Integer createUserId;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    private Integer updateUserId;
    
    /**
     * 展示开始时间
     */
    private Date startTime;
    
    /**
     * 展示结束时间
     */
    private Date endTime;

    /**
     * tb_advertisement
     */
    private static final long serialVersionUID = 1L;

    /**
     * 
     * @return id 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     * @param id 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 广告标题
     * @return title 广告标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 广告标题
     * @param title 广告标题
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * 
     * @return sort 
     */
    public Integer getSort() {
        return sort;
    }

    /**
     * 
     * @param sort 
     */
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    /**
     * width
     * @return width width
     */
    public Integer getWidth() {
        return width;
    }

    /**
     * width
     * @param width width
     */
    public void setWidth(Integer width) {
        this.width = width;
    }

    /**
     * 
     * @return height 
     */
    public Integer getHeight() {
        return height;
    }

    /**
     * 
     * @param height 
     */
    public void setHeight(Integer height) {
        this.height = height;
    }

    /**
     * 链接地址
     * @return linkurl 链接地址
     */
    public String getLinkurl() {
        return linkurl;
    }

    /**
     * 链接地址
     * @param linkurl 链接地址
     */
    public void setLinkurl(String linkurl) {
        this.linkurl = linkurl == null ? null : linkurl.trim();
    }

    /**
     * 类型（1.首页轮播图)
     * @return type 类型（1.首页轮播图)
     */
    public String getType() {
        return type;
    }

    /**
     * 类型（1.首页轮播图)
     * @param type 类型（1.首页轮播图)
     */
    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    /**
     * 
     * @return create_time 
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 
     * @param createTime 
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 
     * @return create_user_id 
     */
    public Integer getCreateUserId() {
        return createUserId;
    }

    /**
     * 
     * @param createUserId 
     */
    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    /**
     * 
     * @return update_time 
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 
     * @param updateTime 
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 
     * @return update_user_id 
     */
    public Integer getUpdateUserId() {
        return updateUserId;
    }

    /**
     * 
     * @param updateUserId 
     */
    public void setUpdateUserId(Integer updateUserId) {
        this.updateUserId = updateUserId;
    }

    public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getTypeStr() {
		return typeStr;
	}

	public void setTypeStr(String typeStr) {
		this.typeStr = typeStr;
	}

	@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", title=").append(title);
        sb.append(", sort=").append(sort);
        sb.append(", width=").append(width);
        sb.append(", height=").append(height);
        sb.append(", linkurl=").append(linkurl);
        sb.append(", type=").append(type);
        sb.append(", createTime=").append(createTime);
        sb.append(", createUserId=").append(createUserId);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", updateUserId=").append(updateUserId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}